<?php

namespace App\Http\Controllers;


use App\User;
use Illuminate\Http\Request;




class TestController extends Controller
{


    public function index(Request $request){

//        $_COOKIE['name'] = 'tw';
//        dd($_COOKIE);

        $data[] = $request->all();
        $data['header'] = getallheaders();
        $data['post'] = $_POST;
        $data['get'] = $_GET;
        $data['input'] = file_get_contents('php://input');
        $data['input'] = json_decode($data['input']);
        var_dump($this);
        dd($data,json_decode($data['input']),$this);
//        return  response()->json($data);

}



}
